package com.sg.controller.bff;

import com.sg.service.biz.bff.StandardDataService;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "StandardData", tags = {"StandardData"})
@RestController
// @RequestMapping("/oms/standardData/")
public class StandardDataController {

    @Autowired
    StandardDataService standardDataService;

    /**
     * B3-查询向右周期实际值
     * gen by moon at 7/2/2023, 2:14:42 PM
     */
    @PostMapping("/oms/standardData/queryRightCycleActualValueDataDetail")
    @ApiOperation(value = "B3-查询向右周期实际值", response = OkrResult.class)
    public OkrResult<BffQueryRightCycleActualValueDataDetailRespDto> queryRightCycleActualValueDataDetail(@RequestBody(required = false) @Validated BffQueryRightCycleActualValueDataDetailReqDto reqDTO) {
        return OkrResult.success(standardDataService.queryRightCycleActualValueDataDetail(reqDTO));
    }

    /**
     * B4-查询实际值标准数据详情
     * gen by moon at 7/2/2023, 2:28:54 PM
     */
    @PostMapping("/oms/standardData/queryActualValueDataDetail")
    @ApiOperation(value = "B4-查询实际值标准数据详情", response = OkrResult.class)
    public OkrResult<BffQueryActualValueDataDetailRespDto> queryActualValueDataDetail(@RequestBody(required = false) @Validated BffQueryActualValueDataDetailReqDto reqDTO) {
        return OkrResult.success(standardDataService.queryActualValueDataDetail(reqDTO));
    }
}
